/**
 * 
 */
package com.ffcs.crmd.tsp.server.jdbc.entity;

/**
 * 功能说明:
 *
 * @author FFCS-ZHONGFUHUA
 * 
 * @since 
 *
 */
public class TaskIdentity {
    
    private Long    id;
    
    /**
     * 任务组ID
     */
    private Long    jobGroupId;
    
    /**
     * 标识名称
     */
    private String  name;
    
    /**
     * 标识
     */
    private String  identity;
    
    /**
     * 描述
     */
    private String  description;
    
    /**
     * 集群名称
     */
    private String  clusterName;
    
    /**
     * 任务处理线程池优先级权重
     */
    private String  threadPriorityWeight;
    
    /**
     * 批量任务中的业务处理线程池优先级权重
     */
    private String  batchThreadPriorityWeight;
    
    /**
     * 任务线程池大小
     */
    private Integer threadNum;
    
    /**
     * 批量业务数据处理线程池大小
     */
    private Integer batchThreadNum;
    
    /**
     * 
     */
    private Integer pageSize;
    
    /**
     * 
     */
    private Integer pageNumber;
    
    /**
     * 功能说明: 获取id
     *
     * @return id id
     */
    public Long getId() {
        return id;
    }
    
    /**
     * 功能说明: 设置id
     *
     * @param id id 
     */
    public void setId(Long id) {
        this.id = id;
    }
    
    /**
     * 功能说明: 获取任务组ID
     *
     * @return jobGroupId 任务组ID
     */
    public Long getJobGroupId() {
        return jobGroupId;
    }
    
    /**
     * 功能说明: 设置任务组ID
     *
     * @param jobGroupId 任务组ID 
     */
    public void setJobGroupId(Long jobGroupId) {
        this.jobGroupId = jobGroupId;
    }
    
    /**
     * 功能说明: 获取标识名称
     *
     * @return name 标识名称
     */
    public String getName() {
        return name;
    }
    
    /**
     * 功能说明: 设置标识名称
     *
     * @param name 标识名称 
     */
    public void setName(String name) {
        this.name = name;
    }
    
    /**
     * 功能说明: 获取标识
     *
     * @return identity 标识
     */
    public String getIdentity() {
        return identity;
    }
    
    /**
     * 功能说明: 设置标识
     *
     * @param identity 标识 
     */
    public void setIdentity(String identity) {
        this.identity = identity;
    }
    
    /**
     * 功能说明: 获取描述
     *
     * @return description 描述
     */
    public String getDescription() {
        return description;
    }
    
    /**
     * 功能说明: 设置描述
     *
     * @param description 描述 
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
    /**
     * 功能说明: 获取集群名称
     *
     * @return clusterName 集群名称
     */
    public String getClusterName() {
        return clusterName;
    }
    
    /**
     * 功能说明: 设置集群名称
     *
     * @param clusterName 集群名称 
     */
    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }
    
    /**
     * 功能说明: 获取任务线程池大小
     *
     * @return threadNum 任务线程池大小
     */
    public Integer getThreadNum() {
        return threadNum;
    }
    
    /**
     * 功能说明: 设置任务线程池大小
     *
     * @param threadNum 任务线程池大小 
     */
    public void setThreadNum(Integer threadNum) {
        this.threadNum = threadNum;
    }
    
    /**
     * 功能说明: 获取批量业务数据处理线程池大小
     *
     * @return batchThreadNum 批量业务数据处理线程池大小
     */
    public Integer getBatchThreadNum() {
        return batchThreadNum;
    }
    
    /**
     * 功能说明: 设置批量业务数据处理线程池大小
     *
     * @param batchThreadNum 批量业务数据处理线程池大小 
     */
    public void setBatchThreadNum(Integer batchThreadNum) {
        this.batchThreadNum = batchThreadNum;
    }
    
    /**
     * 功能说明: 获取任务处理线程池优先级权重
     *
     * @return threadPriorityWeight 任务处理线程池优先级权重
     */
    public String getThreadPriorityWeight() {
        return threadPriorityWeight;
    }
    
    /**
     * 功能说明: 设置任务处理线程池优先级权重
     *
     * @param threadPriorityWeight 任务处理线程池优先级权重 
     */
    public void setThreadPriorityWeight(String threadPriorityWeight) {
        this.threadPriorityWeight = threadPriorityWeight;
    }
    
    /**
     * 功能说明: 获取批量任务中的业务处理线程池优先级权重
     *
     * @return batchThreadPriorityWeight 批量任务中的业务处理线程池优先级权重
     */
    public String getBatchThreadPriorityWeight() {
        return batchThreadPriorityWeight;
    }
    
    /**
     * 功能说明: 设置批量任务中的业务处理线程池优先级权重
     *
     * @param batchThreadPriorityWeight 批量任务中的业务处理线程池优先级权重 
     */
    public void setBatchThreadPriorityWeight(String batchThreadPriorityWeight) {
        this.batchThreadPriorityWeight = batchThreadPriorityWeight;
    }
    
    /**
     * 功能说明: 获取
     *
     * @return pageSize 
     */
    public Integer getPageSize() {
        return pageSize;
    }
    
    /**
     * 功能说明: 设置
     *
     * @param pageSize  
     */
    public void setPageSize(Integer pageSize) {
        if(pageSize == null || pageSize < 0){
            this.pageSize = 0;
        }else{
            this.pageSize = pageSize;
        }
    }
    
    /**
     * 功能说明: 获取
     *
     * @return pageNumber 
     */
    public Integer getPageNumber() {
        return pageNumber;
    }
    
    /**
     * 功能说明: 设置
     *
     * @param pageNumber  
     */
    public void setPageNumber(Integer pageNumber) {
        if(pageNumber == null || pageNumber < 0){
            this.pageNumber = 1;
        }else{
            this.pageNumber = pageNumber;
        }
    }
    
}
